def test():
    list1 = ["郑州", "欢迎", "您"]
    with open("a.txt", "w+") as file:
        file.writelines(list1)
        file.seek(0)
        for item in file:
            print(item)


if __name__ == '__main__':
    test()
